找传奇、传世资源到传世资源站!

翠欧控制器以太网连接

8.5玩家评分(1人评分)
下载后可评
介绍 评论 失效链接反馈

翠欧控制器以太网连接
from clipboardusing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            axTrioPC1.HostAddress = "127.0.0.1";
            //打开以太网连接
            axTrioPC1.Open(2,0);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            //设置速度
           double d;
            axTrioPC1.SetVr(100,123.321);
            axTrioPC1.GetVr(101,out d);
            //点动
            axTrioPC1.MoveRel(1, 500, 0);
        }
    }
}.
├── WindowsFormsApp1
│   ├── App.config
│   ├── Form1.Designer.cs
│   ├── Form1.cs
│   ├── Form1.resx
│   ├── Program.cs
│   ├── Properties
│   │   ├── AssemblyInfo.cs
│   │   ├── Resources.Designer.cs
│   │   ├── Resources.resx
│   │   ├── Settings.Designer.cs
│   │   └── Settings.settings
│   ├── WindowsFormsApp1.csproj
│   ├── WindowsFormsApp1.sln
│   ├── bin
│   │   └── Debug
│   │       ├── AxInterop.TrioPCLib.dll
│   │       ├── Interop.TrioPCLib.dll
│   │       ├── WindowsFormsApp1.exe
│   │       ├── WindowsFormsApp1.exe.config
│   │       └── WindowsFormsApp1.pdb
│   └── obj
│       └── Debug
│           ├── AxInterop.TrioPCLib.dll
│           ├── DesignTimeResolveAssemblyReferences.cache
│           ├── DesignTimeResolveAssemblyReferencesInput.cache
│           ├── Interop.TrioPCLib.dll
│           ├── TempPE
│           ├── WindowsFormsApp1.Form1.resources
│           ├── WindowsFormsApp1.Properties.Resources.resources
│           ├── WindowsFormsApp1.csproj.AssemblyReference.cache
│           ├── WindowsFormsApp1.csproj.CoreCompileInputs.cache
│           ├── WindowsFormsApp1.csproj.FileListAbsolute.txt
│           ├── WindowsFormsApp1.csproj.GenerateResource.cache
│           ├── WindowsFormsApp1.csproj.ResolveComReference.cache
│           ├── WindowsFormsApp1.csproj.SuggestedBindingRedirects.cache
│           ├── WindowsFormsApp1.exe
│           └── WindowsFormsApp1.pdb
└── 找例子网_WindowsFormsApp1.rar

7 directories, 32 files

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复